"""tradetrends URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from .views import *

urlpatterns = [
    url(r'^$', index,name='homepage'),
    url(r'^open/(?P<productId>\w+)', open_product,name='open_product'),
    url(r'^search_product_list/', search_product_list,name='search_product_list'),
    url(r'^product_detail/', product_detail,name='product_detail'),
    url(r'^single_product_detail/', single_product_detail,name='signle_product_detail'),
    url(r'^collectOneKey/', collectOneKey,name='collectOneKey'),
    url(r'^single_product_transactions/', single_product_transactions,name='signle_product_transactions'),
    #url(r'^products/', products,name='products'),
    #url(r'^monitor_products/', monitor_products,name='monitor_products'),
    url(r'^single_products/', single_products,name='single_products'),
    url(r'^transdata/', transdata,name='transdata'),
    url(r'^countryrank/', countryrank,name='countryrank'),
    url(r'^userrank/', userrank,name='userrank'),
    url(r'^quantityrank/', quantityrank,name='quantityrank'),
    url(r'^getsales/', getsales,name='getsales'),
    url(r'^test/', test,name='test'),
    url(r'^gettest/', get_test,name='gettest'),
    url(r'^single/', single,name='single'),
    url(r'^remove/', remove_product,name='remove_product'),
    url(r'^monitor_add/', monitor_add,name='monitor_add'),
    url(r'^monitor_remove/', monitor_remove,name='monitor_remove'),
    url(r'^task/add', task_add,name='task_add'),
    url(r'^ajaxSearch/$', ajaxSearch,name='ajaxSearch'),
    url(r'^ajaxCountry/$', ajaxCountry,name='ajaxCountry'),
]
